   package com.example.everying.service.pay;

   import com.baomidou.mybatisplus.extension.service.IService;
   import com.example.everying.model.dto.pay.TransactionDto;
   import com.example.everying.model.entity.pay.PaymentOrderEntity;
   import com.example.everying.utils.Result;
   import com.wechat.pay.java.service.payments.model.Transaction;
   import jakarta.servlet.http.HttpServletRequest;
   import org.springframework.transaction.annotation.Transactional;

   import java.io.IOException;

   public interface PaymentOrderService extends IService<PaymentOrderEntity> {
      @Transactional
      Result<?> createOrder(PaymentOrderEntity paymentOrderEntity);

      Result<?> queryOrder(String outTradeNo);

      @Transactional
      Result<?> payCallback(HttpServletRequest request) throws IOException;

//      @Transactional
//      Result<?> payCallback(TransactionDto transaction) throws IOException;
   }
   